package summer_vacation.cullen.one10;

import java.util.Scanner;

/**
 * Created by Cullen on 2015/8/4.
 */
public class N26 {
    public static void main(String[] args) {
        Scanner x=new Scanner(System.in);
        System.out.println("请输入三角形边长a");
        int a=x.nextInt();
        Scanner y=new Scanner(System.in);
        System.out.println("请输入三角形边长b");
        int b=x.nextInt();
        Scanner z=new Scanner(System.in);
        System.out.println("请输入三角形边长c");
        int c=x.nextInt();
        if(a+b>c && a+c>b && b+c>a){
            System.out.println("a,b,c可以三角形的边长！");
            int sum=a+b+c;
            System.out.println("该三角形的周长是："+sum);
        }else {
            System.out.println("a,b,c不可以是三角形的边长！");
        }
    }
}
